import 'package:flutter/material.dart';
import 'package:flutternote/com/lzp/flutternote/router/transition_show.dart';

class RouterShow extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("带特效的页面转换"),
      ),
      body: new Center(
        child: Column(
          children: <Widget>[
            Padding(padding: EdgeInsets.all(10),),
            OutlineButton(
              borderSide: BorderSide(
                color: Colors.green[600]
              ),
              child: Text("转场动画"),
              textColor: Colors.red,
              onPressed: (){
                Navigator.push(context, new MaterialPageRoute(builder: (context){
                  return HeroAnimationRoute();
                }));
              },
            ),
            Padding(padding: EdgeInsets.all(10),),
          ],
        ),
      ),
    );
  }
}